#ifndef LINECONNECTORELEMENT_H
#define LINECONNECTORELEMENT_H

#include <QObject>
#include <QGraphicsItem>
#include <QPointer>

#include "../sagevis.h"
#include "../VisBaseClasses/visbaseelement.h"
#include "../VisBaseClasses/visbasewidget.h"

class LineConnectorElement : public VisBaseElement
{
    Q_OBJECT
public:
    //LineConnectorElement(QPointer<SageVis> sageVisPointer, QPointer<VisBaseWidget> parentWidget, QGraphicsItem *parent = 0);
    LineConnectorElement(QPointer<VisBaseElement> e1, QPointer<VisBaseElement> e2, QPointer<SageVis> sageVisPointer, QPointer<VisBaseWidget> parentWidget, QGraphicsItem *parent = 0);

    typedef VisBaseElement super;

    //PAINT FUNCTIONS
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);

signals:
    
public slots:

protected:
    QPointer<VisBaseElement> elt1;
    QPointer<VisBaseElement> elt2;
    
};

#endif // LINECONNECTORELEMENT_H
